package com.jing21.learn.basic.system.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.Collections;
import java.util.Map;

/**
 * Create By zhengjing on 2017/11/13 15:05
 */
@RestController
public class SystemController {

    @GetMapping("/datetime")
    public Map<String, LocalDateTime> datetime() {
        return Collections.singletonMap("datetime", LocalDateTime.now());
    }
}
